package com.example.child_protection.dto.request.update;

import com.example.child_protection.dto.base.BaseUpdateRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 区域修改请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class SystemRegionUpdateRequestDTO extends BaseUpdateRequestDTO {
    /**
     * 名称
     *
     * @mbggenerated
     */
    @ApiParam(value = "名称",required = true)
    @NotNull
    private String name;

    /**
     * 代码
     *
     * @mbggenerated
     */
    @ApiParam(value = "代码",required = true)
    @NotNull
    private String code;

    /**
     * 父ID（101=重庆）
     *
     * @mbggenerated
     */
    @ApiParam( hidden = true ,value = "父级ID")
    @NotNull
    private Long parentId =101L;

    public void valid(){

        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
